<template>
  <div class="box">
    <div class="left">
      <span class="img service"></span>
      <span>客服</span>
    </div>
    <div class="left">
      <span class="img store"></span>
      <span>店铺</span>
    </div>
    <div class="left">
      <span class="img kf"></span>
      <span>收藏</span>
    </div>
    <div class="right shop" @click="add">
      <span>加入购物车</span>
    </div>
    <div class="right play">
      <span>购买</span>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    add() {
      this.$emit('clickOk')
    }
  }
}
</script>

<style scoped>
  .box {
    position: relative;
    height: 49px;
    background-color: #fff;
    display: flex;
    text-align: center;
  }

  .box .left {
    flex: 1;
  }

  .box .right {
    flex: 2;
    line-height: 49px;
  }

  .img {
    display: block;
    width: 22px;
    height: 22px;
    margin: 7px auto 0;
    background: url("~assets/img/detail/detail_bottom.png") 0 0/100%;
  }
  
  .service {
    background-position: 0 -54px;
  }

  .store {
    background-position: 0 -98px;
  }

  .shop {
    background-color: #ffb800;
    color: #000;
    font-size: 14px;
  }

  .play {
    background-color: #ff8f96;
     color: #fff;
    font-size: 14px;
  }                
</style>